Continuous collision detection (CCD) support on nphysics 0.12

Поделиться
HTML-код
  • Опубликовано: 5 авг 2019
  • This shows the support of continuous collision detection (CCD) on nphysics2d (works on nphysics3d too), a physics engine written in the Rust programming language. Two examples are shown:
    The first one shows fast-moving U-shaped blue rigid bodies that should hit a wall. In the first execution (shown step-by-step, and them in one continuous simulation) we see that some of those rigid bodies traverse the wall completely. In the second execution, CCD is enabled and those rigid bodies hit the wall as expected because.
    The second example depicts a pyramid of blue cubes and a yellow ball on the left. This ball is displayed in wireframe mode to indicate that it is a sensor (aka. trigger). This sensor is programmed so that each cube it touches becomes yellow. In the first execution of this example, we see that not all the cubes on the yellow ball trajectory become yellow because its goes too fast. In the second execution of this example, CCD is enabled on this sensor, causing all the cubes on its trajectory to become yellow as expected.
    This feature is released with the version 0.12 of nphysics. See nphysics.org for more details about the nphysics2d and nphyics3d physics engines!
    Support us on Patreon: / sebcrozet !
  • НаукаНаука

Комментарии •